import Vue from 'vue'
import Router from 'vue-router'

import Home from '../containers/home/home'
import Mine from '../containers/mine/mine'
import Shiliaofang from '../containers/shiliaofang'
import Sirendingzhi from '../containers/sirendingzhi/sirendingzhi'
import Shoppingcart from '../containers/shoppingcart'


import Logistics from '../containers/mine/hlogistics'
import Login from '../containers/mine/login'
import Regist from '../containers/mine/regist'
import Forget from '../containers/mine/forget'
import Resetmima from '../containers/mine/resetmima'
import MineOrder from '../containers/mine/hmineOrder'
import Advice from '../containers/mine/advice'
import Service from '../containers/mine/service'
import Calendars from '../containers/calendar'
import Collection from '../containers/mine/collection'
import Help from '../containers/mine/hhelp'
import Setting from '../containers/mine/hsetting'


import ViewLeft from '../components/home/homeView/viewLeft/ViewLeft' // 主页面每日一测的页面
import ViewRight from '../components/home/homeView/viewright/ViewRight' // 主页面每日食谱的页面
import Know from '../components/home/know/Know' // 主页面下方小常识页面
import ViewTest from '../components/home/homeView/viewLeft/viewTest/ViewTest'
// 每日一测点击开始测试页面
import TestFinish from '../components/home/homeView/viewLeft/viewTest/testFinish/TestFinish'
// 每日一测的测试结果页面


import Message from '../components/mine/message/messagecon'
import Information from '../components/mine/message/information'
import Family from '../components/mine/message/family'
import Add from '../components/mine/message/collection/add'
import Basis from '../components/mine/message/collection/basis'
import Family_add from '../components/mine/message/collection/family_add'
import Namebasis from '../components/mine/message/collection/namebasis'
import Test from '../components/mine/message/collection/test'
import Simple from '../components/mine/message/collection/simple'
import Professional from '../components/mine/message/collection/professional'
import Choose from '../components/mine/message/collection/choose'

import Confirmation from '../containers/shopping/confirmation'
import ShoppingD from '../containers/shopping/shoppingds'

import ReceivingAddress from '../containers/shopping/receivingaddress/receivingaddress'
import NewlyAdded from '../containers/shopping/receivingaddress/newlyadded/newlyAdded'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/home'
    },
    {
      path: '/home',
      name: 'Home',
      component: Home
    },
    {
      path: '/shiliaofang',
      component: Shiliaofang
    },
    {
      path: '/sirendingzhi',
      component: Sirendingzhi
    },
    {
      path: '/shoppingcart',
      component: Shoppingcart

    },
    {
      path:'/sure',
      name:"Confirmation",
     component:Confirmation
    },
    {
      path: '/mine',
      component: Mine
    },

    // hqq

    // 主页部分开始
    {
      path: '/logistics',
      component: Logistics
    },
    {
      path: '/login/:router?',
      component: Login
    },
    {
      path: '/regist',
      component: Regist
    },
    {
      path: '/forget',
      component: Forget
    },
    {
      path: '/resetmima',
      component: Resetmima
    },
    {
      path: '/mineorder',
      component: MineOrder
    },
    {
      path: '/advice',
      component: Advice
    },
    {
      path: '/service',
      component: Service
    },
    {
      path: '/calendar',
      component: Calendars
    },
    {
      path: '/collection',
      component: Collection
    },
    {
      path: '/help',
      component: Help
    },
    {
      path: '/setting',
      component: Setting
    },




    //
   {
     path: '/information',
     component: Information
   },
   {
     path: '/messagecon',
     component: Message
   },
   {
     path: '/family',
     component: Family
   },
   {
     path: '/basis',
     component: Basis
   },
   {
     path: '/add',
     component: Add
   },
   {
     path: '/family_add',
     component: Family_add
   },
   {
     path: '/namebasis',
     component: Namebasis
   },
   {
     path: '/test',
     component: Test,
   },
   {
     path: '/simple',
     component: Simple,
   },
   {
     path: '/professional',
     component: Professional,
   },
   {
     path: '/choose',
     component: Choose,
   },
    {

      path: '/viewleft',
      name: 'ViewLeft',
      component: ViewLeft
    },
    {
      path: '/viewright',
      name: 'ViewRight',
      component: ViewRight
    },
    {
      path: '/know',
      name: 'Know',
      component: Know
    },
    {
      path: '/viewtest',
      name: 'ViewTest',
      component: ViewTest
    },
    {
      path: '/testfinish',
      name: 'TestFinish',
      component: TestFinish
    },
    // 主页部分结束

    {
      path:'/addr',
      component:ReceivingAddress
    },
    {
      path:'/zhs',
      component:NewlyAdded
    },
    {
      path:'/shopdetail',
      name:"Shoppingd",
      component:ShoppingD
    }
  ]
})
